import axios from 'axios'

export const getNewsRecommend = function (params) {
    return axios.get('api/news/recommend', {
        params: params
    })
}

export const getNewsLists = function (params) {
    return axios.get('api/news', {
        params: params
    })
}

export const getNewsDetail = function (id) {
    return axios.get('api/news/' + id)
}



